/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package crp.object;

import java.util.ArrayList;

/**
 *
 * @author Kresnik
 */
public class Keywords {
    private static ArrayList<String> keywordlist = new ArrayList<String>();
    
    public static void addKeyword(String keyword){
        if(!keywordlist.contains(keyword) && keyword.length() > 2)
            keywordlist.add(keyword);
    }
    
    public static void deleteKeyword(String keyword){
        keywordlist.remove(keyword);
    }
    
    public static void deleteKeyword(int index){
        keywordlist.remove(index);
    }
    
    public static void deleteKeyword(int[] indices){
        for(int i : indices)
            keywordlist.remove(i);
    }
    
    public static void clear(){
        keywordlist.clear();
    }
    
    public static ArrayList<String> getKeywords(){
        return Keywords.keywordlist;
    }
    
    public static void chooseKeyword(){
    	
    }
}
